<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<!DOCTYPE html 
	PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>
			<tiles:getAsString name="title" />
		</title>
		<style type="text/css" media="screen">
			@import url("<c:url value="/styles/layout.css" />");
			@import url("<c:url value="/styles/content.css" />");
		</style>
		
		
	    <c:if test="${not empty redirect}">
	    	<script type="text/JavaScript">
				setTimeout("location.href = '${pageContext.request.contextPath}/${redirect}';",2000);
			</script>
		</c:if>
		<c:if test="${not empty dispScript}">
		<script type="text/JavaScript">
				function disp(id){
					document.getElementById(id+'-hide').style.display = 'none';
					document.getElementById(id+'-show').style.display = 'block';
				}
		</script>
		</c:if>
		
		
	</head>
	<body onload="setFocus();">
		<tiles:insertAttribute name="header" />
		<c:if test="${not empty isCredits}">
		<div id="content" class="credits">
		</c:if>
		<c:if test="${empty isCredits}">
		<div id="content">
		</c:if>
			<tiles:insertAttribute name="body" />
		</div>
	</body>
</html>
